package jdbc.way4;


import jdbc.connection.Connection;

public class Client {
    public static void main(String[] args) throws Exception {
        Class.forName("design.pattern.factory.jdbc.way4.MysqlConnectionFactory");
        Connection connection = ConnectionFactoryManager.getConnection("jdbc:mysql", "root", "");
        if (connection != null) {
            System.out.println(connection.getClass());
        }
    }
}
